import request from '@/utils/request'

export function getMusicList(params) {
  return request({
    url: '/music/song',
    method: 'get',
    params
  })
}

export function updateMusic(data) {
  return request({
    url: '/music/song',
    method: 'put',
    data
  })
}

export function deleteMusics(ids) {
  return request({
    url: '/music/song/' + ids,
    method: 'delete',
  })
}

export function addMusic(data) {
  return request({
    url: '/music/song',
    method: 'post',
    data
  })
}
